<template>
  <el-descriptions :column="6" border direction="vertical" style="margin-bottom: 20px;">
    <template #title>
      <el-icon><List /></el-icon>
      <span>基本信息</span>
    </template>
    <el-descriptions-item label="订单编号" label-align="center" align="center">
      <OmsEslipe :content="prop.baseInfo.orderSn" v-if="prop.baseInfo.orderSn"/>
      <div v-else>暂无</div>
    </el-descriptions-item>
    <el-descriptions-item label="发货单流水号" label-align="center" align="center">
      {{ prop.baseInfo.useIntegration || "暂无" }}
</el-descriptions-item>
<el-descriptions-item label="用户账号" label-align="center" align="center">
  {{ prop.baseInfo.memberUsername }}
</el-descriptions-item>
<el-descriptions-item label="支付方式" label-align="center" align="center">
  {{ PayType[prop.baseInfo.payType] }}
</el-descriptions-item>
<el-descriptions-item label="订单来源" label-align="center" align="center">
  {{ SourceType[prop.baseInfo.sourceType] }}
</el-descriptions-item>
<el-descriptions-item label="订单类型" label-align="center" align="center">
  {{ OrderType[prop.baseInfo.orderType] }}
</el-descriptions-item>
<el-descriptions-item label="配送方式" label-align="center" align="center">
  {{ prop.baseInfo.deliveryCompany || "暂无" }}
</el-descriptions-item>
<el-descriptions-item label="物流单号" label-align="center" align="center">
  {{ prop.baseInfo.deliverySn || "暂无" }}
</el-descriptions-item>
<el-descriptions-item label="自动收货时间" label-align="center" align="center">
  {{ prop.baseInfo.autoConfirmDay }}天
</el-descriptions-item>
<el-descriptions-item label="订单可得优币" label-align="center" align="center">
  {{ prop.baseInfo.integration || "暂无"}}
</el-descriptions-item>
<el-descriptions-item label="订单可得值" label-align="center" align="center">
  {{ prop.baseInfo.growth || "暂无"}}
</el-descriptions-item>
<el-descriptions-item label="活动信息" label-align="center" align="center" width="100px">
  <OmsEslipe :content="prop.baseInfo.promotionInfo" v-if="prop.baseInfo.promotionInfo"/>
  <div v-else>暂无</div>
</el-descriptions-item>
  </el-descriptions>
</template>
<script setup lang="ts">
import OmsEslipe from './OmsEslipe.vue';

enum PayType{
  "未支付",
  "未发货",
  "已发货",
  "已完成",
  "已关闭",
}
enum SourceType{
  "PC订单",
  "APP订单"
}
enum OrderType{
  "秒杀订单",
  "正常订单"
}
let prop = defineProps<{
  baseInfo:any
}>()

</script>